package br.net.woodstock.tickettoride.jee6.web.access;

import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.inject.Inject;
import javax.inject.Named;

import br.net.woodstock.tickettoride.web.jsf.access.common.AbstractMenuBean;

@Named("menuBean")
@ConversationScoped
public class MenuBean extends AbstractMenuBean {

	private static final long	serialVersionUID	= -2388650344847820940L;

	@Inject
	private Conversation		conversation;

	public MenuBean() {
		super();
	}

	@Override
	public boolean isEnabled() {
		if (this.conversation.isTransient()) {
			return true;
		}
		return false;
	}

}
